package com.huawei.hms.support.api.entity.sns;

import com.huawei.hms.core.aidl.IMessageEntity;
import com.huawei.hms.core.aidl.annotation.Packed;

public class SnsMsg implements IMessageEntity {
    @Packed
    private byte[] appIconData;
    @Packed
    private String appName;
    @Packed
    private boolean checkTargetApp;
    @Packed
    private String description;
    @Packed
    private byte[] linkIconData;
    @Packed
    private String targetAppMarketId;
    @Packed
    private String targetAppPackageName;
    @Packed
    private int targetAppVersionCode;
    @Packed
    private String title;
    @Packed
    private String url;
    @Packed
    private int urlType = 0;

    public int getUrlType() {
        return this.urlType;
    }

    public void setUrlType(int i) {
        this.urlType = i;
    }

    public String getTitle() {
        return this.title;
    }

    public void setTitle(String str) {
        this.title = str;
    }

    public String getDescription() {
        return this.description;
    }

    public void setDescription(String str) {
        this.description = str;
    }

    public byte[] getLinkIconData() {
        if (this.linkIconData == null) {
            return new byte[0];
        }
        return (byte[]) this.linkIconData.clone();
    }

    public void setLinkIconData(byte[] bArr) {
        if (bArr != null) {
            this.linkIconData = (byte[]) bArr.clone();
        }
    }

    public boolean isCheckTargetApp() {
        return this.checkTargetApp;
    }

    public void setCheckTargetApp(boolean z) {
        this.checkTargetApp = z;
    }

    public String getTargetAppMarketId() {
        return this.targetAppMarketId;
    }

    public void setTargetAppMarketId(String str) {
        this.targetAppMarketId = str;
    }

    public String getTargetAppPackageName() {
        return this.targetAppPackageName;
    }

    public void setTargetAppPackageName(String str) {
        this.targetAppPackageName = str;
    }

    public int getTargetAppVersionCode() {
        return this.targetAppVersionCode;
    }

    public void setTargetAppVersionCode(int i) {
        this.targetAppVersionCode = i;
    }

    public String getUrl() {
        return this.url;
    }

    public void setUrl(String str) {
        this.url = str;
    }

    public String getAppName() {
        return this.appName;
    }

    public void setAppName(String str) {
        this.appName = str;
    }

    public byte[] getAppIconData() {
        if (this.appIconData == null) {
            return new byte[0];
        }
        return (byte[]) this.appIconData.clone();
    }

    public void setAppIconData(byte[] bArr) {
        if (bArr != null) {
            this.appIconData = (byte[]) bArr.clone();
        }
    }
}
